document.getElementById("sub").addEventListener("submit", function() {
	alert("hi3");
}, false);
document.forms[0].addEventListener("submit", function(event) {
	
	alert("form");
	alert(event.target.id);
}, false);